<?php
namespace app\admin\validate;
use think\Validate;
use think\Request;
use think\Exception;
class BaseValidate extends Validate
{
  public function goCheck(){
    //获取http传入的参数
    //对参数做效验
    $request = Request::instance();
    $params = $request->param();
    $result = $this->check($params);
    if(!$result){
      return $this->error;
      die;
    }else{
      return true;
    }
  }
}

?>